package com.unknown.communication.entity;

import java.util.LinkedList;
import java.util.List;

public class Pool {
    private Class<?> member;
    private List<Message> messages;

    public Pool(Message message) {
        messages = new LinkedList<>();
        messages.add(message);
        member = message.getReceiver();
    }

    public Class<?> getMember() {
        return member;
    }

    public List<Message> getMessages() {
        return messages;
    }
}
